/**
 * 
 */
package com.ihg.hiex.entity.session.during;

import org.apache.commons.lang3.StringUtils;

import com.demo2do.core.utils.Alias;

/**
 * @author downpour
 *
 */
@Alias("AnchorScoreType")
public enum SessionCalibrationHotelType {
    
    COMPLEX("高级酒店", "complex", "assessor.438"),
    
    AVERAGE("中等酒店", "average", "assessor.439"),
    
    SIMPLE("普通酒店", "simple", "assessor.440");

    private String description;
    
    private String alias;
    
    private String message;

    /**
     * @param description
     * @param alias
     * @param message
     */
    private SessionCalibrationHotelType(String description, String alias, String message) {
        this.description = description;
        this.alias = alias;
        this.message = message;
    }

    /**
     * 
     * @param alias
     * @return
     */
    public static SessionCalibrationHotelType aliasOf(String alias) {
        for(SessionCalibrationHotelType sessionCalibrationHotelType : SessionCalibrationHotelType.values()) {
            if(StringUtils.equalsIgnoreCase(sessionCalibrationHotelType.getAlias(), alias)) {
                return sessionCalibrationHotelType;
            }
        }
        return null;
    }
    
    /**
     * 
     * @return
     */
    public boolean isComplex() {
        return this.equals(COMPLEX);
    }
    
    /**
     * 
     * @return
     */
    public boolean isAverage() {
        return this.equals(AVERAGE);
    }
    
    /**
     * 
     * @return
     */
    public boolean isSimple() {
        return this.equals(SIMPLE);
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }
    
    /**
     * @return
     */
    public String getMessage() {
        return message;
    }

}
